package com.iot.service;

import com.iot.mapper.Tnb_dev_reqMapper;
import com.iot.pojo.MTnb_dev_req;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Tnb_dev_reqServiceImp implements Tnb_dev_reqService {

    @Autowired
    private Tnb_dev_reqMapper mapper;

    @Override
    public int getRecordCount(String sWhere) {
        return mapper.getRecordCount(sWhere);
    }

    @Override
    public int insert(MTnb_dev_req bean) throws Exception {
        return mapper.insert(bean);
    }

    @Override
    public void update(MTnb_dev_req bean) throws Exception {

    }

    @Override
    public void deleteById(int id) {

    }

    @Override
    public MTnb_dev_req single(Integer id) {
        return null;
    }


    @Override
    public List<MTnb_dev_req> fetch(String sWhere) {
        return mapper.fetch(sWhere);
    }
    @Override
    public MTnb_dev_req singleByWhere (String sWhere )
    {
        return  mapper.singleByWhere(sWhere);
    }
}
